﻿package Classes.Missions{
	import Classes.*;
	import Classes.Elements.*;
	public class UnitLists{
		static public var w:int = GameSettings.sceneWidth;
		static public var h:int = GameSettings.sceneHeight;
		
		static public var Units1:Array = [				
			
			Unit.buildUnit(UnitType.Buffalo,30,w-80,-10),
			Unit.buildUnit(UnitType.Buffalo,1,80,-10),
			Unit.buildUnit(UnitType.Buffalo,30,w-100,-10),
			Unit.buildUnit(UnitType.Buffalo,1,100,-10),
			Unit.buildUnit(UnitType.Buffalo,30,w-120,-10),
			Unit.buildUnit(UnitType.Buffalo,1,120,-10),
			Unit.buildUnit(UnitType.Buffalo,30,w-160,-10),
			Unit.buildUnit(UnitType.Buffalo,1,160,-10),
			
			Unit.buildUnit(UnitType.BulletBonus,20,150,-10),
			Unit.buildUnit(UnitType.MissileBonus,30,w-150,-10),						
			
			Unit.buildUnit(UnitType.Cannon,50,w-150,-10),
			Unit.buildUnit(UnitType.Cannon,1,150,-10),
			
			Unit.buildUnit(UnitType.Delta,180,w-50,-10),
			Unit.buildUnit(UnitType.Delta,1,50,-10),
			Unit.buildUnit(UnitType.Delta,40,w-120,-10),
			Unit.buildUnit(UnitType.Delta,1,120,-10),
			Unit.buildUnit(UnitType.Delta,80,w-50,-10),
			Unit.buildUnit(UnitType.Delta,1,50,-10),
			Unit.buildUnit(UnitType.Delta,40,w-120,-10),
			
			Unit.buildUnit(UnitType.Flak,40,w-100,-10),
			Unit.buildUnit(UnitType.Flak,40,w-60,-10),			
			Unit.buildUnit(UnitType.LifeBonus,1,w-100,-10),
			Unit.buildUnit(UnitType.Flak,1,w-140,-10),
			Unit.buildUnit(UnitType.Flak,40,w-100,-10),			
			
			Unit.buildUnit(UnitType.Buffalo,30,w-100,-10),
			Unit.buildUnit(UnitType.Buffalo,1,100,-10),
			Unit.buildUnit(UnitType.Buffalo,30,w-100,-10),
			Unit.buildUnit(UnitType.Buffalo,1,100,-10),
			
			Unit.buildUnit(UnitType.Pirate,80,w-150,-10),
			Unit.buildUnit(UnitType.Pirate,1,150,-10),
			
			Unit.buildUnit(UnitType.Buffalo,30,w-100,-10),
			Unit.buildUnit(UnitType.Buffalo,1,100,-10),
			Unit.buildUnit(UnitType.Buffalo,30,w-100,-10),
			Unit.buildUnit(UnitType.Buffalo,1,100,-10),
			
			Unit.buildUnit(UnitType.Pirate,80,w-150,-10),
			Unit.buildUnit(UnitType.Pirate,1,150,-10),
			
			Unit.buildUnit(UnitType.Buffalo,30,w*Math.random(),-10),
			Unit.buildUnit(UnitType.Buffalo,1,w*Math.random(),-10),
			Unit.buildUnit(UnitType.Buffalo,30,w*Math.random(),-10),
			Unit.buildUnit(UnitType.Buffalo,1,w*Math.random(),-10),
			Unit.buildUnit(UnitType.Buffalo,30,w*Math.random(),-10),
			Unit.buildUnit(UnitType.Buffalo,1,w*Math.random(),-10),
			Unit.buildUnit(UnitType.Buffalo,30,w*Math.random(),-10),
			Unit.buildUnit(UnitType.Buffalo,1,w*Math.random(),-10),
			
			Unit.buildUnit(UnitType.Rocketdrome,40,100,-10),
			Unit.buildUnit(UnitType.Flak,40,60,-10),			
			Unit.buildUnit(UnitType.EnergyBonus,1,100,-10),
			Unit.buildUnit(UnitType.Flak,1,140,-10),
			Unit.buildUnit(UnitType.Flak,40,100,-10),			
			
			Unit.buildUnit(UnitType.Delta,80,40+(w-80)*Math.random(),-10),
			Unit.buildUnit(UnitType.Delta,10,40+(w-80)*Math.random(),-10),
			Unit.buildUnit(UnitType.Delta,40,40+(w-80)*Math.random(),-10),
			Unit.buildUnit(UnitType.Delta,10,40+(w-80)*Math.random(),-10),
			Unit.buildUnit(UnitType.Delta,80,40+(w-80)*Math.random(),-10),
			Unit.buildUnit(UnitType.Delta,10,40+(w-80)*Math.random(),-10),
			Unit.buildUnit(UnitType.Delta,40,40+(w-80)*Math.random(),-10),
			
			Unit.buildUnit(UnitType.BulletBonus,1,w-150,-10),
			
			Unit.buildUnit(UnitType.Delta,40,40+(w-80)*Math.random(),-10),
			Unit.buildUnit(UnitType.Delta,10,40+(w-80)*Math.random(),-10),
			Unit.buildUnit(UnitType.Delta,40,40+(w-80)*Math.random(),-10),
			Unit.buildUnit(UnitType.Delta,10,40+(w-80)*Math.random(),-10),
			Unit.buildUnit(UnitType.Delta,80,40+(w-80)*Math.random(),-10),
			Unit.buildUnit(UnitType.Delta,10,40+(w-80)*Math.random(),-10),
			Unit.buildUnit(UnitType.Delta,40,40+(w-80)*Math.random(),-10),
						
			Unit.buildUnit(UnitType.Osprey,80,200,-25)
			];
		
		static public var Units2:Array = [				
												
			Unit.buildUnit(UnitType.Delta,20,w-150,-10),
			Unit.buildUnit(UnitType.Delta,1,150,-10),
			Unit.buildUnit(UnitType.Delta,40,w-180,-10),
			Unit.buildUnit(UnitType.Delta,1,180,-10),
						
			Unit.buildUnit(UnitType.BulletBonus,30,w-150,-10),
			
			Unit.buildUnit(UnitType.EnergyBonus,30,w-80,-10),
			Unit.buildUnit(UnitType.MissileBonus,1,80,-10),
			
			Unit.buildUnit(UnitType.Flak,20,w-120,-10),
			Unit.buildUnit(UnitType.Flak,1,120,-10),
			
			Unit.buildUnit(UnitType.Buffalo,130,w-100,-10),
			Unit.buildUnit(UnitType.Buffalo,10,100,-10),
			Unit.buildUnit(UnitType.Buffalo,30,w-100,-10),
			Unit.buildUnit(UnitType.Buffalo,10,100,-10),
			Unit.buildUnit(UnitType.Buffalo,30,w-100,-10),
			Unit.buildUnit(UnitType.Buffalo,10,100,-10),
			
			Unit.buildUnit(UnitType.BulletBonus,1,150,-10),
			
			Unit.buildUnit(UnitType.LifeBonus,20,200,-10),
			Unit.buildUnit(UnitType.Flak,10,w-120,-10),
			Unit.buildUnit(UnitType.Flak,1,120,-10),
			
			Unit.buildUnit(UnitType.Karl,40,w-150,-10),
			Unit.buildUnit(UnitType.Karl,1,150,-10),		
			
			Unit.buildUnit(UnitType.Cannon,10,w-100,-10),
			Unit.buildUnit(UnitType.Cannon,1,100,-10),

			Unit.buildUnit(UnitType.Rocketdrome,40,w-120,-10),
			Unit.buildUnit(UnitType.Rocketdrome,1,120,-10),
			
			Unit.buildUnit(UnitType.Pirate,40,w-150,-10),
			Unit.buildUnit(UnitType.Pirate,1,150,-10),
			Unit.buildUnit(UnitType.Pirate,40,w-120,-10),
			Unit.buildUnit(UnitType.Pirate,1,120,-10),
						
			Unit.buildUnit(UnitType.Archer,40,w-60,-10,true,80),
			Unit.buildUnit(UnitType.Archer,10,60,-10,true,80),
			Unit.buildUnit(UnitType.Archer,40,w-100,-10,true,120),
			Unit.buildUnit(UnitType.Archer,10,100,-10,true,120),
			Unit.buildUnit(UnitType.Archer,40,w-120,-10,true,160),
			Unit.buildUnit(UnitType.Archer,10,120,-10,true,160),
			Unit.buildUnit(UnitType.Archer,40,w-180,-10,true,200),
			Unit.buildUnit(UnitType.Archer,10,180,-10,true,200),			
			
			Unit.buildUnit(UnitType.Delta,80,w-50,-10),
			Unit.buildUnit(UnitType.Delta,1,50,-10),
			Unit.buildUnit(UnitType.Delta,40,w-120,-10),
			Unit.buildUnit(UnitType.Delta,1,120,-10),
			
			Unit.buildUnit(UnitType.Flak,40,w-180,-10),
			Unit.buildUnit(UnitType.Flak,1,180,-10),
			Unit.buildUnit(UnitType.Cannon,10,w-120,-10),
			Unit.buildUnit(UnitType.Cannon,1,120,-10),
			
			Unit.buildUnit(UnitType.Karl,40,w-150,-10),
			Unit.buildUnit(UnitType.Karl,1,150,-10),			
			
			Unit.buildUnit(UnitType.Rocketdrome,1,w-60,-10),
			Unit.buildUnit(UnitType.Rocketdrome,1,60,-10),
			
			Unit.buildUnit(UnitType.Cannon,140,w-120,-10),
			Unit.buildUnit(UnitType.Cannon,1,120,-10),
			Unit.buildUnit(UnitType.Flak,10,w-180,-10),
			Unit.buildUnit(UnitType.Flak,1,180,-10),
			
			Unit.buildUnit(UnitType.BulletBonus,1,w-80,-10),
			
			Unit.buildUnit(UnitType.Flak,100,100,-10),
			Unit.buildUnit(UnitType.Flak,40,60,-10),			
			Unit.buildUnit(UnitType.EnergyBonus,1,100,-10),
			Unit.buildUnit(UnitType.Flak,1,140,-10),
			Unit.buildUnit(UnitType.Flak,40,100,-10),			
			
			Unit.buildUnit(UnitType.MissileBonus,1,80,-10),
			Unit.buildUnit(UnitType.Delta,80,w-50,-10),
			Unit.buildUnit(UnitType.Delta,1,50,-10),
			Unit.buildUnit(UnitType.Delta,40,w-120,-10),
			Unit.buildUnit(UnitType.Delta,1,120,-10),
			Unit.buildUnit(UnitType.Delta,80,w-50,-10),
			Unit.buildUnit(UnitType.Delta,1,50,-10),

			Unit.buildUnit(UnitType.Poseidon,120,200,-10)
			];
		

	}
}